import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
import { BaseEntity } from './base.entity';

/**
 * 词典表
 */
@Entity('admin_user')
export class AdminUser extends BaseEntity {
  @PrimaryGeneratedColumn({
    type: 'int',
    name: 'id',
    comment: '主键，自增',
  })
  id: number;

  @Column({
    type: 'varchar',
    name: 'username',
    comment: `用户名`,
  })
  username: string;

  @Column({
    type: 'varchar',
    name: 'password',
    comment: `密码`,
  })
  password: string;
}
